-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I16 metropolis #17
base: main
Are you sure you want to change the base?
I16 metropolis #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Chon -- looks really good! Can I make the following suggestions:
- Run the sampler on the correlated Gaussian for more iterations: I think this method should work ok on this problem if given enough (say 30,000) iterations
- Drop the banana: it ain't gonna work at all on this, I think
On the re-run it doesn't look that great for the standard gaussian either. Worth investigating, I think, this is quite similar to what the bug in pop mcmc looked like |
@ben18785 I've removed the banana test case, and I've run the correlated Gaussian for more iterations (doubled, 40k iterations). @MichaelClerx What bug was it? |
Thanks @chonlei -- I think @MichaelClerx means that the ECDFs don't look quite like the theoretical ones. I'm wondering a) whether the step size hyperparameter for this method is too short and b) whether just to run those two ECDF examples for much longer? |
That's right! In pop mcmc we had a bug that caused something similar Plots showing the bug: #1238 PR fixing it #1246 The actual bug: pints-team/pints#1246 (comment) |
This PR adds testing notebook for the Metropolis random walk. Closes #16.
So far metropolis works well for 2D Gaussian problem, but not for correlated Gaussian and banana problems. I guess it is somewhat expected given this is a vanilla Metropolis MCMC method. I suppose correlated problems are not easy for such a vanilla method, never mind the banana problem.
I am happy for this method to behave in such a way, though let me know if any one thinks we should try to make it works for the other problems as well.